<?php if (!defined('THINK_PATH')) exit();?><form id="pagerForm" method="post" action="<?php echo U('client/Client/index');?>">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
    <input type="hidden" name="numPerPage" value="<?php echo ($pageSize); ?>" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?php echo U('client/Client/index');?>" method="get">
	    <input type="hidden" act="app" value="client" />
	    <input type="hidden" act="mod" value="Client" />
	    <input type="hidden" act="act" value="index" />
	<div class="searchBar">
		<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		-->
		<table class="searchContent">
			<tr>
				<td>
					我的客户：<input type="text" name="name" />
				</td>
				<td>
					<select class="combox" name="province">
						<option value="">所有省市</option>
						<option value="北京">北京</option>
						<option value="上海">上海</option>
						<option value="天津">天津</option>
						<option value="重庆">重庆</option>
						<option value="广东">广东</option>
					</select>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<?php echo U('client/Client/add');?>" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="index.php?app=client&mod=Client&act=delClient&id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="index.php?app=client&mod=Client&act=editClient&id={sid_user}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
<!--
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="50">姓名</th>
				<th width="60">昵称</th>
				<th width="20">性别</th>
				<th width="100">出生日期</th>
				<th width="80" align="center">省市</th>
				<th width="80">职务</th>
				<th width="80">客户阶段</th>
			      <th width="100">EMO</th>
			      <th width="100">EMO阶段</th>
			</tr>
		</thead>
		<tbody>
		<?php if(is_array($list["data"])): $i = 0; $__LIST__ = $list["data"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr target="sid_user" rel="<?php echo ($vo["id"]); ?>">
				<td><?php echo ($vo["name"]); ?></td>
				<td><?php echo ($vo["nickname"]); ?></td>
				<td><?php if($vo['sex'] == 1): ?>男<?php else: ?>女<?php endif; ?></td>
				<td><?php echo (date("Y-m-d",$vo["birthday"])); ?></td>
				<td><?php echo ($vo["city"]); ?></td>
				<td><?php echo ($vo["job"]); ?></td>
				<td><?php echo ($vo["client_stage"]); ?></td>
				<td>2009-05-21</td>
			      <td>2009-05-21</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共<?php echo ($list["sum"]); ?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo ($list["sum"]); ?>" numPerPage="<?php echo ($pageSize); ?>" pageNumShown="<?php echo ($list["count"]); ?>" currentPage="<?php echo ($list["page"]); ?>"></div>

	</div>
</div>